home *** CD-ROM | disk | FTP | other *** search
- -- card: 2908 from stack: in
- -- bmap block id: 2509
- -- flags: 0000
- -- background id: 2685
- -- name:
-
-
- -- part 1 (button)
- -- low flags: 00
- -- high flags: 2000
- -- rect: left=447 top=159 right=183 bottom=502
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Simulate Problem
- ----- HyperTalk script -----
- on mouseUp
-
- -- These lines set up the drawing params the way I want them
- set the dragspeed to 0
- global userlevel
- put the linesize into linetemp
- set the linesize to 1
- put the userlevel into usertemp
- set userlevel to 3
- put the brush into brushtemp
- set the brush to 32
- put the pattern into patterntemp
- set the pattern to 12
- global arm
- global cent
- put 143 into arm
- put "256,179" into cent
- put empty into field "Dots"
- ask "How many points are there?"
- put round (it) into pts
- put pts into card field "Sources"
- put 2*pi/pts into theta
- choose select tool
- drag from 84,21 to 444,335
- doMenu "Clear Picture"
- put 0 into card field "Tally"
- choose brush tool
-
- -- This draws the dots on the circle
- repeat with x = 0 to ( pts - 1)
- put round ( arm * ( cos ( theta * x ) ) ) into hor
- put round ( arm * ( sin ( theta * x ) ) ) into ver
- put cent into spot
- add hor to item 2 of spot
- add ver to item 1 of spot
- put spot & return after field "Dots"
- click at spot
- end repeat
-
- -- This draws the connecting lines
- choose line tool
- repeat with a = 1 to ( pts - 1 )
- repeat with b = a to ( pts - 1 )
- drag from line a of field "Dots" to line ( b + 1 ) of field "Dots"
- add 1 to card field "Tally"
- end repeat
- end repeat
-
- -- These commands set the painting parameters
- -- back to what they were before I changed them
- choose browse tool
- set the userlevel to usertemp
- set the brush to brushtemp
- set the linesize to linetemp
- set the pattern to patterntemp
-
- end mouseUp
-
-
-
- -- part 2 (field)
- -- low flags: 01
- -- high flags: 2002
- -- rect: left=445 top=215 right=238 bottom=503
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 2
- -- text size: 14
- -- style flags: 0
- -- line height: 18
- -- part name: Tally
-
-
- -- part 3 (button)
- -- low flags: 00
- -- high flags: 0002
- -- rect: left=451 top=30 right=64 bottom=497
- -- title width / last selected line: 0
- -- icon id / first selected line: 1011 / 1011
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Home
- ----- HyperTalk script -----
- on mouseUp
- visual effect venetian blinds
- go home
- end mouseUp
-
-
-
- -- part 4 (button)
- -- low flags: 00
- -- high flags: 0002
- -- rect: left=451 top=69 right=106 bottom=496
- -- title width / last selected line: 0
- -- icon id / first selected line: 1020 / 1020
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Home
- ----- HyperTalk script -----
- on mouseUp
- visual effect scroll left
- go next card
- end mouseUp
-
-
-
- -- part 5 (field)
- -- low flags: 01
- -- high flags: 2002
- -- rect: left=445 top=287 right=310 bottom=503
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 2
- -- text size: 14
- -- style flags: 0
- -- line height: 18
- -- part name: Sources
-
-
- -- part contents for card part 2
- ----- text -----
- 21
-
- -- part contents for card part 5
- ----- text -----
- 7
-
- -- part contents for background part 1
- ----- text -----
- 256,322
- 368,268
- 395,147
- 318,50
- 194,50
- 117,147
- 144,268
-